home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
listings
/
v_08_06
/
8n06069a
< prev
next >
Wrap
Text File
|
1993-04-05
|
586b
|
24 lines
DateObjects can span dates from 1 January 4700 BC
to 31 December 25000 AD, or 10847738 days.
A good reference date is 23 May 1968
which should have a Julian date of 2440000.
If we call GetJulian() to make sure, we find
that it does, in fact, equal 2440000.
Attempting to add 10847738 days to 23 May 1968
yields a Bad Date.
Attempting to subtract 10847738 days from 23 May 1968
yields a Bad Date.
However, adding 10847738 days to 1 January 4700 BC
yields 31 December 25000 AD.
Today is 4-07-1993.
The next five days are:
Thursday
Friday
Saturday
Sunday
Monday